package com.wicket.okrcomponent.integration.dto;

import com.wicket.okrcomponent.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @desc AcceptDataSetOutputDto
 * @使用场景
 */
@Data
public class AcceptDataSetOutputDto extends BaseDto implements Serializable {

  /**
   * 应用实例配置关系ID
   */
  @ApiModelProperty("应用实例配置关系ID")
  private String applexRelId;

  /**
   * 应用对象类型 TENANT_SPACE:租户空间 ORG:组织 EVA_THEME:评价主题 EVA_TEMP:评价模板 PLATFORM:平台
   */
  @ApiModelProperty("应用对象类型")
  private String applObjType;

  /**
   * 应用实例ID
   */
  @ApiModelProperty("应用实例ID")
  private String applexId;

  /**
   * 对象名称
   */
  @ApiModelProperty("对象名称")
  private String objectName;

  /**
   * 应用实例类型 TENANT_SPACE:租户空间 ORG:组织 EVA_THEME:评价主题 EVA_TEMP:评价模板 PLATFORM:平台
   */
  @ApiModelProperty("应用实例类型")
  private String applexType;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    AcceptDataSetOutputDto that = (AcceptDataSetOutputDto) o;
    return (
      applexRelId == that.applexRelId &&
      applObjType == that.applObjType &&
      applexId == that.applexId &&
      objectName == that.objectName &&
      applexType == that.applexType
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      applexRelId,
      applObjType,
      applexId,
      objectName,
      applexType
    );
  }

}
